/*
 * @Desc: 常用正则
 */


export const DOMAIN_RULE = /^(?=^.{3,255}$)[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$/

export const EMAIL_RULE = /[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+/

export const PHONE_RULE = /1[34578]\d{9}/

//首位不为0 5-11位qq
export const QQ_RULE = /^[1-9][0-9]{4,10}$/  

export const IP_RULE = /^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$/
